package com.coderman.domainservice.member.infrast.mq.consumer;

import com.coderman.domainservice.blogtopic.app.consumer.BlogCheckResultService;
import com.coderman.domainservice.blogtopic.domain.model.event.consumer.BlogCheckResultEvent;
import com.coderman.domainservice.blogtopic.infrast.mq.RocketMQListener;
import com.coderman.domainservice.member.app.consumer.BlogPublishConsumerService;
import com.coderman.domainservice.member.domain.model.user.event.consumer.PublishBlogEvent;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Description:
 * date: 2021/3/29
 *
 * @author shenshuai
 * @version 1.0.0
 * @since JDK 1.8
 * 博客内容审核结果消息消费监听
 */
@Service
public class BlogPublishConsumer implements RocketMQListener<PublishBlogEvent> {

    @Autowired
    private BlogPublishConsumerService blogPublishConsumerService;

    @Override
    public void onMessage(PublishBlogEvent event) {
        blogPublishConsumerService.dealMessage(event);
    }
}
